package com.salary.model

import java.math.MathContext
import _root_.scala.xml.{NodeSeq, Node, Text, Elem}

import net.liftweb.common.Empty
import net.liftweb.mapper._
class SocialSecurity extends LongKeyedMapper[SocialSecurity] with IdPK {
	def getSingleton = SocialSecurity
	object idx extends MappedString(this,20) //员工号
	object name extends MappedString(this,20) //姓名
	object time extends MappedString(this,20) //缴费时间
	object base extends MappedDouble(this) //缴费基数
	object SAFbyCompany extends MappedDouble(this) //养老单位
	object SAFbySelf extends MappedDouble(this) //养老个人
	object UEIbyCompany extends MappedDouble(this) //失业单位
	object UEIbySelf extends MappedDouble(this) //失业个人
	object MPIbyCompany extends MappedDouble(this) //医疗单位
	object MPIbySelf extends MappedDouble(this) //医疗个人
	object BMPIbyCompany extends MappedDouble(this) //大病医疗单位
	object BMPIbySelf extends MappedDouble(this) //大病医疗个人
	object IDA extends MappedDouble(this) //工伤
	object MTI extends MappedDouble(this) //生育
}

object SocialSecurity extends SocialSecurity with LongKeyedMetaMapper[SocialSecurity] with LongCRUDify[SocialSecurity]{
	override def fieldOrder = List(idx, name, time, base, SAFbyCompany, SAFbySelf, UEIbyCompany, UEIbySelf, MPIbyCompany, MPIbySelf, BMPIbyCompany, BMPIbySelf, IDA, MTI)
}